package Day001_继承_抽象类.zuoye03;

public class Test {
    public static void main(String[] args) {
        yuangong y = new yuangong();
        y.setID("ID999");
        y.setName("张三");
        y.setAge(20);
        System.out.println(y.getID() + y.getName() + y.getAge());
        y.pub();

        jingli j = new jingli();
        j.setID("ID001");
        j.setName("李四");
        j.setAge(50);
        j.setJiangjin(9999.99);
        System.out.println(j.getID() + j.getName() + j.getAge() + j.getJiangjin());
        j.pub();
    }
}
